import request from '/@/utils/request';

// 查询帮助文档列表
export function listHelp(query?: Object) {
  return request({
    url: '/module/platform/help/list',
    method: 'get',
    params: query
  })
}


// 查询帮助文档列表
export function treeSelect() {
  return request({
    url: '/module/platform/help/treeSelect',
    method: 'get'
  })
}



// 查询帮助文档详细
export function getHelp(id?: number) {
  return request({
    url: '/module/platform/help/' + id,
    method: 'get'
  })
}

// 新增帮助文档
export function addHelp(data?: Object) {
  return request({
    url: '/module/platform/help',
    method: 'post',
    data: data
  })
}

// 修改帮助文档
export function updateHelp(data?: Object) {
  return request({
    url: '/module/platform/help',
    method: 'put',
    data: data
  })
}

// 删除帮助文档
export function delHelp(id?: number) {
  return request({
    url: '/module/platform/help/' + id,
    method: 'delete'
  })
}

// 导出帮助文档
export function exportHelp(query?: Object) {
  return request({
    url: '/module/platform/help/export',
    method: 'get',
    params: query
  })
}
